package com.translation.batch;

import java.io.IOException;
import java.sql.SQLException;
import java.util.Arrays;

import com.translation.dict.TermImporter;

public class TermBatch {

	public static void main(String[] args) throws IOException, SQLException {
		for (int i = 0; i < args.length; i += 2) {
			try {
				TermImporter.main(Arrays.copyOfRange(args, i, i + 2));
			} catch (Exception e) {
				System.out.println(e.getMessage());
			}
		}
	}
}
